//
//  DishSecData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/13
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "DishSecData.h"
#import "DishTags_Info.h"

@implementation DishSecData

+ (NSDictionary *)objectClassInArray{
    return @{@"tags_info" : [DishTags_Info class]};
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"tags_info"]) {
        NSMutableArray<DishTags_Info *>  *infoArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DishTags_Info *infoData = [DishTags_Info modelWithDic:dic];
            [infoArray addObject:infoData];
        }
        _tags_info = infoArray;
    }
}
@end
